import plotly.graph_objects as go
import numpy as np

x = np.arange(-100, 100, 0.1)
y_atan = np.atan(x)
y_arctan = np.arctan(x)

fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y_atan, mode="lines", name="atan"))
fig.add_trace(go.Scatter(x=x, y=y_arctan, mode="markers", name="arctan"))
fig.update_layout(
    title="arctan(x) atan(x)函数",
    xaxis_title="x",
    yaxis_title="y",
)
fig.show()
